{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
}}

<PageHeader as |p|>
  <p.top>
    <Page::Breadcrumbs @breadcrumbs={{this.breadcrumbs}} />
  </p.top>
  <p.levelLeft>
    <h1 class="title is-3" data-test-page-title>
      Create a PKI Role
    </h1>
  </p.levelLeft>
</PageHeader>

<PkiRoleForm
  @role={{this.model.role}}
  @issuers={{this.model.issuers}}
  @model={{this.model}}
  @onCancel={{transition-to "vault.cluster.secrets.backend.pki.roles.index"}}
  @onSave={{transition-to "vault.cluster.secrets.backend.pki.roles.role.details" this.model.role.id}}
/>